    <!-- Insert page header -->
    <?php echo $this->render('header1.phtml'); ?>
    <!-- Include your CSS / JS here -->
	<?php echo $this->headLink()->prependStylesheet($this->baseUrl().'/css/site.css');
	echo $this->headScript();
	

		
	?>
	<!-- Display body header (logo)  -->
    <?php echo $this->render('header2.phtml'); ?>

	<!-- Page Menu -->
	<div id="menu">
		<div id="menu-left">
		<?php 
			if ($this->idView == "planningView") { ?>
				<a id="projectSettingsButton" href="<?php echo $this->url(array('controller'=>'planning','action'=>'editproject')); ?>">Project settings</a>
				|
				<a id="projectDiagrammButton" href="<?php echo $this->url(array('controller'=>'planning','action'=>'showdiagramm')); ?>">Diagramm</a>
			<?php } ?>
		</div>
		<div id="menu-right">
			<?php 
			if (!$this->logged & !$this->mainIndex) {
				echo "<a href=".$this->baseUrl().'/index/'.">Index</a>";
			}
			
			if ($this->idView == "planningView" | $this->idView == "addProjectView" | $this->idView == "editUserSettingsView") {
				echo "<a href=".$this->baseUrl().'/listproject/index'.">Project Manager</a>";
				echo " | ";
			}
			if ($this->logged & $this->idView != "editUserSettingsView") {
				echo "<a href=".$this->baseUrl().'/listproject/editusersettings'.">User Settings</a>";
					echo " | ";
			}
			if($this->logged) { 
				echo "<a href=".$this->baseUrl().'/index/logout'.">Logout</a>";
			} 
			?>
							
		</div>
	</div>

	 <div id="contentTop">
		<!-- Page Content -->
		 <div id="contentDesc"> 
		 	<div >
				<!-- Page Title -->
				<h1><?php echo $this->escape($this->title); ?></h1>
				<!-- Page Content -->
				<?php echo $this->layout()->content; ?>
			</div>
		</div>
		<!-- Show demo diagramm in homepage -->
			 
		<!-- Display sidebar -->
		<?php if(!$this->logged & $this->active) { ?>
		<div id="sidebar">
				<div id="login">
					<h2>Sign in</h2>
					<?php
					echo $this->loginForm;
					?>
				</div>
	
			<!-- Display sidebar (create login) -->    
			<div id="createLogin">
				<h2>Don't have an account?</h2>
				<a id="createAccountButton" href="<?php echo $this->url(array('controller'=>'index','action'=>'createaccount')); ?>"><b>Create an account now</b></a> 
			</div>
		 </div> 
		 <?php } ?>
	</div>
	
    
 	<div id="contentBottom">
		<div>
			<?php
				if($this->isDemo){
					echo $this->render('planning/showdiagramm.phtml'); 
				}else
				?>
		</div>
	</div>

    
    <!-- Display Footer -->
    <?php echo $this->render('footer.phtml'); ?>
    </div>